home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- branch ;
- access ;
- symbols sprited:1.1.1;
- locks ; strict;
- comment @ * @;
-
-
- 1.1
- date 88.08.20.21.03.49; author ouster; state Exp;
- branches 1.1.1.1;
- next ;
-
- 1.1.1.1
- date 91.12.02.20.35.27; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @/*
- * MemData.c --
- *
- * Contains variables that are shared among the various memory
- * allocation procedures. They need to be in a separate file
- * in order to avoid unpleasant interactions with some old-
- * fashioned UNIX programs that define some or all of the malloc-
- * related stuff for themselves. If the variables are tied to
- * a particular procedure, then the procedure will get linked in
- * whenever the variables are needed, even in the program has
- * defined its own version of that procedure.
- *
- * Copyright 1985, 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: malloc.c,v 1.3 88/05/21 16:18:02 ouster Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include "memInt.h"
-
- /*
- * Info for binned allocation. See memInt.h for details.
- */
-
- Address memFreeLists[BIN_BUCKETS];
- int mem_NumBlocks[BIN_BUCKETS];
- #ifdef MEM_TRACE
- int mem_NumBinnedAllocs[BIN_BUCKETS];
- #endif
-
- /*
- * Info for large-block allocator. See memInt.h for details.
- */
-
- Address memFirst, memLast;
- Address memCurrentPtr;
- int memLargestFree = 0;
- int memBytesFreed = 0;
- int mem_NumLargeBytes = 0;
- int mem_NumLargeAllocs = 0;
- int mem_NumLargeLoops = 0;
-
- int mem_NumAllocs = 0;
- int mem_NumFrees = 0;
-
- int memInitialized = 0;
-
- Sync_Lock memMonitorLock;
- @
-
-
- 1.1.1.1
- log
- @Initial branch for Sprite server.
- @
- text
- @d24 1
- a24 1
- static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/MemData.c,v 1.1 88/08/20 21:03:49 ouster Exp $ SPRITE (Berkeley)";
- @
-